<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="com.staff.model.emoplyee" %>
<%@ page import="java.util.*" %>
<%@ page import="com.staff.Util.JDBC_Staff" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>更新界面</title>
</head>
	<% emoplyee tList = new emoplyee();%>
	<% int   id = Integer.valueOf(request.getParameter("id")); %>
	<% String sql = "select * from employee where id = ?"; %>
	<% Object[] obs = {id}; %>
	<% tList = JDBC_Staff.getSingleResult(sql, obs, emoplyee.class);%>
<body>
	<form action="EmployeeServlet?category=update&id=<%=tList.getId()%>" method="post">
			<!--员工姓名<input type="text" name="name" value="tList.getName()"/>-->
			员工姓名<input type="text" name="name" value="<%=tList.getName()%>"/>
    		员工性别<input type="text" name="sex" value="<%=tList.getSex() %>"/><br/>
    		员工年龄<input type="text" name="age" value="<%=tList.getAge() %>"/>
    		所属部门<input type="text" name="dapartment" value="<%=tList.getDapartment() %>"/><br/>
    		所在职务<input type="text" name="type" value="<%=tList.getType() %>"/>
    		工龄<input type="text" name="year" value="<%=tList.getYear() %>"/><br/>
    		<input type="submit" value="提交">
    </form>
</body>
</html>